//process.php starts here $username="username"; $password="password"; $database="your_database"; $first=$_POST['first']; $last=$_POST['last']; $email=$_POST['email']; $web=$_POST['web']; $comment=$_POST['comment']; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "INSERT INTO guestbook VALUES ('','$first','$last','$email','$web','$comment')"; mysql_query($query); mysql_close(); ?> //End of Process.php //start of index.php